package com.itheima.esdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.esdemo.pojo.Sku;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface SkuMapper extends BaseMapper<Sku> {

    @Select("select id,name,price,num,image,create_time,category_id,category_name,brand_name from tb_sku")
    List <Sku> findAll();

}
